package org.smardi.fakeCall.Service;

import org.smardi.fakeCall.*;
import org.smardi.fakeCall.Service.*;

import android.app.*;
import android.app.AlertDialog.*;
import android.content.*;
import android.os.*;

public class AC_Dialog_CLIQr_Cancel extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_dialog_timer_cancel);
		
		AlertDialog.Builder alert = new AlertDialog.Builder(AC_Dialog_CLIQr_Cancel.this);
		alert.setTitle("CLIQ.r 모드 종료");
		alert.setMessage("CLIQ.r 을 이용한 FakeCall 실행을 중지하시겠습니까?");
		alert.setPositiveButton("네", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				sendBroadcast(new Intent(SV_FakeCall.ACTION_FAKECALL_CLIQR_CANCEL));
				finish();
			}
		});
		alert.setNegativeButton("아니오", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				finish();
			}
		});
		alert.show();
	}
	
}
